import service from '@/utils/request'

// @Tags UserGoodsPic
// @Summary 创建UserGoodsPic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsPic true "创建UserGoodsPic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoodsPic/createUserGoodsPic [post]
export const createUserGoodsPic = (data) => {
     return service({
         url: "/userGoodsPic/createUserGoodsPic",
         method: 'post',
         data
     })
 }


// @Tags UserGoodsPic
// @Summary 删除UserGoodsPic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsPic true "删除UserGoodsPic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoodsPic/deleteUserGoodsPic [delete]
 export const deleteUserGoodsPic = (data) => {
     return service({
         url: "/userGoodsPic/deleteUserGoodsPic",
         method: 'delete',
         data
     })
 }

// @Tags UserGoodsPic
// @Summary 删除UserGoodsPic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserGoodsPic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userGoodsPic/deleteUserGoodsPic [delete]
 export const deleteUserGoodsPicByIds = (data) => {
     return service({
         url: "/userGoodsPic/deleteUserGoodsPicByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserGoodsPic
// @Summary 更新UserGoodsPic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsPic true "更新UserGoodsPic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userGoodsPic/updateUserGoodsPic [put]
 export const updateUserGoodsPic = (data) => {
     return service({
         url: "/userGoodsPic/updateUserGoodsPic",
         method: 'put',
         data
     })
 }


// @Tags UserGoodsPic
// @Summary 用id查询UserGoodsPic
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserGoodsPic true "用id查询UserGoodsPic"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userGoodsPic/findUserGoodsPic [get]
 export const findUserGoodsPic = (params) => {
     return service({
         url: "/userGoodsPic/findUserGoodsPic",
         method: 'get',
         params
     })
 }


// @Tags UserGoodsPic
// @Summary 分页获取UserGoodsPic列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserGoodsPic列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userGoodsPic/getUserGoodsPicList [get]
 export const getUserGoodsPicList = (params) => {
     return service({
         url: "/userGoodsPic/getUserGoodsPicList",
         method: 'get',
         params
     })
 }